@extends('back.index')
@section('title','作家收入统计-后台管理系统')
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">作家收入管理</h2>
        <div class="table-responsive">
            <table class="table table-striped">
                <tr>
                    <th>作家</th>
                    <th>总收入</th>
                    <th>操作</th>
                </tr>
                @if(count($mom))
                @foreach($mom as $k)
                <tr>
                    <td>{{$k->nickname}}</td>
                    <td>
                        @if($k->money)
                         {{$k->money}}书币
                        @else
                         暂无数据
                        @endif
                    </td>
                    <td><a href="{{url('back/writer/money/'.$k->id)}}" class="btn btn-info">查看详情</a></td>
                </tr>
                @endforeach
                    @else
                    <tr>
                        <td colspan="3">
                            <h3 class="book_name" >暂无数据</h3>
                        </td>
                    </tr>
                @endif
            </table>
            {{$mom->links()}}
        </div>
    </div>
    @endsection
